package com.chapter.sample.juc.locks;

import org.openjdk.jol.info.ClassLayout;

public class ObjectHeadDemo {
    public static void main(String[] args) {
        Object object = new Object();
        System.out.println(ClassLayout.parseInstance(new MyObject()).toPrintable());
    }
}
class MyObject{
    int i =25;
    boolean flag = false;

    long l = 66;

    float f = 1.24f;
    char a ='a';

    double d = 0.12;

    String s = "str";

    Object obj = new Object();


}
